package com.express.basic.constant;

public class ExpressConstant {

	// ------------------------------redisKey----------------------------
	public static String TOKEN_NAME = "token_name";

	public static int YES = 1;
	public static int NO = 0;

	public static String salt = "19j8";
	
	// -------------------------------constant-----------------------------------
	public static String HEADER_TOKEN = "HEADER_TOKEN";

	public final static int CONNECT_TIME_OUT = 6000;
	public final static int CONNECT_SOKET_TIME_OUT = 6000;

	public final static int CONNECT_TIME_OUT_LONG = 14000;
	public final static int CONNECT_SOKET_TIME_OUT_LONG = 14000;

	
	public final static String RESPONSE_CODE_SUCCESS = "SUCCESS";
	
	public final static String MIX_CODE = "{pay}";
	
	
	public final static int VERSION_ASK = 1;//询问是否需要更新
	public final static int VERSION_MUST = 2;//必须更新
	public final static int VERSION_NOT = 3;//无最新版本
	

	
	public static String TOKEN = "token_";

	public static String USER_COUNT = "userCount";
	
	public enum MsgCode {
		SUCCESSFUL("200", "请求成功"), BUSINESS_ERROR("201", "业务异常"), SYSTEM_ERROR(
				"500", "系统繁忙，请稍后再试"), TOKEN_ERROR("501", "token不对");

		private String code;
		private String message;

		private MsgCode(String code, String message) {
			this.code = code;
			this.message = message;
		}

		public String getCode() {
			return code;
		}

		public void setCode(String code) {
			this.code = code;
		}

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}

	}
}
